<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<meta name="viewport" content="width=1000, initial-scale=1.0, maximum-scale=1.0">
	    <!-- Loading Bootstrap -->
	    <link href="./public/admin/Flat/dist/css/vendor/bootstrap.min.css" rel="stylesheet">
	    <!-- Loading Flat UI -->
	    <link href="./public/admin/Flat/dist/css/flat-ui.css" rel="stylesheet">
	    <link href="./public/admin/Flat/docs/assets/css/demo.css" rel="stylesheet">
	    <link rel="shortcut icon" href="./public/admin/Flat/img/favicon.ico">
	    <!-- HTML5 shim, for IE6-8 support of HTML5 elements. All other JS at the end of file. -->
	    <!--[if lt IE 9]>
	      <script src="dist/js/vendor/html5shiv.js"></script>
	      <script src="dist/js/vendor/respond.min.js"></script>
	    <![endif]-->
	</head>
	<body>
		<form action="" method="post">
		
		<table class="table table-hover">
			<tr class="active">
			  <th width="100">货品id</th>
			  <th width="150">颜色</th>
			  <th width="150">尺码</th>
			  <th width="150">库存</th>
			  <th width="200">货号</th>		  
			  <th width="220">操作</th>
			</tr>
			<?php foreach ($goods_listData as $k=>$v){?>
			<tr>
				<td><?php echo $v['glid']?></td>
				<td><?php echo $v['combine'][0]?></td>
				<td><?php echo $v['combine'][1]?></td>
				<td><?php echo $v['inventory']?></td>
				<td><?php echo $v['number']?></td>
				<td>
					<a href="<?php echo U('edit',array('glid'=>$v['glid'],'gid'=>Q('get.gid',0,'intval')))?>" class="btn btn-sm btn-warning">编辑</a>
					<a href="<?php echo U('del',array('glid'=>$v['glid'],'gid'=>Q('get.gid',0,'intval')))?>" onclick="javascript:if(confirm('确定要删除吗？')){return true;}return false;" class="btn btn-sm btn-danger">删除</a>
				</td>
			</tr>
			<?php }?>
			<tr>
				<td>添加货品</td>
				<td>
					<select name="color">
						<option value="0">请选择</option>
						<?php foreach ($allData as $k=>$v){?>
							<?php if($v['type_attr_taid']==$groupData[0]['type_attr_taid']){?>
                
						<option value="<?php echo $v['gaid']?>"><?php echo $v['ganame']?></option>
							
               <?php }?>
						<?php }?>
					</select>
				</td>
				<td>
					<select name="size">
						<option value="0">请选择</option>
						<?php foreach ($allData as $k=>$v){?>
							<?php if($v['type_attr_taid']==$groupData[1]['type_attr_taid']){?>
                
						<option value="<?php echo $v['gaid']?>"><?php echo $v['ganame']?></option>
							
               <?php }?>
						<?php }?>
					</select>
				</td>
				<td>
					<input type="text" name="inventory" id="" value="" />
				</td>
				<td>
					<input type="text" name="number" id="" value="" />
				</td>
				<td>
				</td>
			</tr>
		</table>
		<input type="hidden" name="goods_gid" id="" value="<?php echo Q('get.gid',0,'intval')?>" />
		<input type="submit" id="" name="" value="保存添加"/>
		</form>
	</body>
</html>
